<?php
namespace Home\Model;
use Think\Model;

class OrderModel extends Model
{
	protected $_validate = array(
        // array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间]),
        array('tel','require','手机号码不能为空',0,'regex',1),
        array('receiver','require','收货人不能为空!!!!!',0,'regex',1),
        array('tel','/^1[35478]\d{9}/','手机号码格式错误!!!!!',0,'regex',1),
    );
}